Login$<%=username%>
Password:$<%=password%>
<%=prompt%>$en
#|Password$<%=ManagementPassword%>
#$con t
#$
#$interface gigabitethernet 0/<%=portID%>
#$<%=type%>
#$exit
<% if(addvlan){ -%>
#$vlan <%=addvlan%>
#$exit
#$interface gigabitethernet 0/<%=portID%>
#$switchport mode hybrid
#$switchport hybrid vlan <%=addvlan%> tagged
#$exit
<% } -%>
<% if(removevlan){ -%>
#$interface gigabitethernet 0/<%=portID%>
#$no switchport hybrid vlan <%=removevlan%>
#$exit
<% } -%>
<% if(UnTagvlan != oldUnTagvlan){ -%>
#$interface gigabitethernet 0/<%=portID%>
#$no switchport hybrid vlan <%=oldUnTagvlan%>
#$no switchport hybrid vlan <%=oldUnTagvlan%>
#$quit
<% if(UnTagvlan){ -%>
#$vlan <%=UnTagvlan%>
#$exit
#$interface gigabitethernet 0/<%=portID%>
#$switchport mode hybrid
#$switchport hybrid vlan <%=UnTagvlan%> untagged
#$switchport hybrid pvid vlan <%=UnTagvlan%>
<% } -%>
<% } -%>
#$exit